WooCommerce\Square\Handlers\Products D

Total Complexity 248
Dependencies 12
Dependents 3
Total lines 1,567
Lines of code 808
Logical lines of code 451
Comment lines 492
Methods 55
Properties 7

Methods 55

Method Rating Maintainability Complexity Lines of code
add_cart_item_data()
B
46 17 35
maybe_adjust_square_stock()
A
45 15 37
add_input_fields_to_gift_card_product()
A
43 14 50
process_product_data()
A
52 15 21
add_product_data_fields()
A
46 8 39
add_notice_product_hidden_from_catalog()
A
51 9 24
set_synced_with_square()
A
54 9 19
filter_single_product_featured_image_placeholder()
A
53 8 24
maybe_stage_product_for_sync()
S
58 8 15
add_sent_to_email_to_cart_item()
S
50 6 33
maybe_stage_products_for_sync_inventory()
S
58 7 16
gift_card_product_image_id()
S
58 6 18
filter_gift_card_product_featured_image_placeholder()
S
53 5 25
validate_product_update_and_sync()
S
53 5 25
add_tabs()
S
54 5 20
handle_product_duplication()
S
58 5 17
filter_products_synced_with_square()
S
56 5 17
import_sync_status()
S
59 5 15
should_use_default_gift_card_placeholder_image()
S
61 5 12
process_post_data()
S
58 4 16
filter_shop_page_add_to_cart_button()
S
59 4 15
add_filter_products_synced_with_square_option()
S
59 4 14
export_sync_status_taxonomy()
S
60 4 13
gift_card_add_to_cart_url()
S
62 4 12
coupon_is_valid()
S
62 4 12
gift_card_add_to_cart_text()
S
62 4 12
output_synced_with_square_edit_field()
S
53 3 25
add_products_edit_screen_hooks()
S
46 2 35
add_gift_card_checkbox()
S
56 3 17
limit_gift_card_quantity_in_cart()
S
62 4 9
gift_card_product_supports()
S
65 4 9
maybe_stage_products_for_deletion()
S
67 4 8
maybe_sync_product_inventory()
S
66 4 8
maybe_sync_staged_products()
S
72 4 5
get_gift_card_default_placeholder_url()
S
63 3 11
check_product_sync_errors()
S
63 3 11
disable_shipping_for_gift_card_product()
S
65 3 10
gift_card_product_has_options()
S
66 3 9
maybe_delete_staged_products()
S
73 3 5
disable_coupons_for_gift_card_product()
S
72 2 6
disable_taxes_for_gift_card_product()
S
72 2 6
filter_needs_processing()
S
72 2 6
add_product_edit_screen_hooks()
S
62 2 10
__construct()
S
60 1 13
filter_product_tabs()
S
75 1 4
get_gift_card_compatible_product_types()
S
73 1 6
register_sync_status_for_importer()
S
75 1 4
add_sync_status_to_column()
S
75 1 4
get_plugin()
S
82 1 3
format_product_error()
S
71 1 6
add_bulk_edit_inputs()
S
81 1 3
add_quick_edit_inputs()
S
82 1 3
add_product_sync_hooks()
S
66 1 8
get_gift_card_default_placeholder_id()
S
74 1 4
map_sync_status_column()
S
75 1 4